using System.Collections.Generic;
using Provausio.Common.Objects;
using TrainingManagement.api.Models.Data.CRUD;
using TrainingManagement.api.Models.Data.CRUD.DepartmentTree;

namespace TrainingManagement.api.Models.BusinessLogic.DepartmentTree
{
    public class DepartmentTreeSelectByParentOperation : BusinessOperation<int, List<BusinessObjects.DepartmentTree>>
    {
        readonly DepartmentTreeSelectByParentDataSource _departmentTreeSelectByParent = new DepartmentTreeSelectByParentDataSource();

        public override List<BusinessObjects.DepartmentTree> Run(int input)
        {
            return _departmentTreeSelectByParent.Execute(input);
        }
    }
}